package designMode;

public class NullPatternDemo {
    public static void main(String[] args) {

        AbstractCustomer customer1 = CustomerFactory.getCustomer("杨俊杰");
        AbstractCustomer customer2 = CustomerFactory.getCustomer("张三");
        AbstractCustomer customer3 = CustomerFactory.getCustomer("赵云峰");
        AbstractCustomer customer4= CustomerFactory.getCustomer("李四");
        AbstractCustomer customer5 = CustomerFactory.getCustomer("朱学峰");

        System.out.println("测试结果如下：");
        System.out.println(customer1.getName());
        System.out.println(customer2.getName());
        System.out.println(customer3.getName());
        System.out.println(customer4.getName());
        System.out.println(customer5.getName());
    }
}
